import Home from '@/pages/Home.js'
import Child from '@/pages/Home/Child.js'
import Child2 from "@/pages/Home/Child2";
import Detil from "@/pages/detil";
import Effect from '@/pages/effect';
const routes = [
  {
    path: '/home',
    component: Home,
    children: [
      {
        path: '/home/child',
        component: Child,
      },
      {
        path: '/home/child2',
        component: Child2,
      }
    ]
  },
  {
    path:"/detil/:id",
    component:Detil
  },
  {
    path:"/effect",
    component:Effect
  },
  {
    path: '/',
    redirect: '/home'
  }
];

export default routes
